package ge.tsu.java.project.server;

public abstract class ServerConfig {

	public static ServerConfig getDefault() {
		return new DefaultConfig();
	}

	public static ServerConfig getInstance() {
		// TODO return XmlServerConfig
		return null;
	}

	public abstract int getPort();

	public abstract int getPoolSize();

	public abstract String getConnectionString();

	public abstract String getJDBCDriver();

	static class DefaultConfig extends ServerConfig {

		@Override
		public int getPort() {
			return 1717;
		}

		@Override
		public int getPoolSize() {
			return 60;
		}

		@Override
		public String getConnectionString() {
			return null;
		}

		@Override
		public String getJDBCDriver() {
			return null;
		}

	}

}
